// import { MessagePlugin } from 'tdesign-vue';
import { getRiskList } from '@/service/risk-assessment/governance';

// 定义的state初始值
const state = {
  riskList: null,
};

const mutations = {
  REQUIREALLROLEINFO(state, res) {
    state.riskList = res;
  },
};

const getters = {};

const actions = {
  async requireRiskList({ commit }, roleDTO) {
    const res = await getRiskList(roleDTO);

    commit('REQUIREALLROLEINFO', res);
  },
};

export default {
  namespaced: true,
  state,
  mutations,
  actions,
  getters,
};
